﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace ApartmentSale
{
	public class MyAppCommands
	{
		static MyAppCommands()
		{
            InputGestureCollection inputNew = new InputGestureCollection();
            inputNew.Add(new KeyGesture(Key.N, ModifierKeys.Control, "Ctrl+N"));
            CmdApartmentNew = new RoutedUICommand("cmdApartmentNew", "cmdApartmentNew",
                typeof(MyAppCommands), inputNew);

            InputGestureCollection inputDeposit = new InputGestureCollection();
            inputDeposit.Add(new KeyGesture(Key.F11, ModifierKeys.None, "F11"));
            CmdDeposit = new RoutedUICommand("cmdDeposit", "cmdDeposit",
                typeof(MyAppCommands), inputDeposit);

            InputGestureCollection inputAffirmance = new InputGestureCollection();
            inputAffirmance.Add(new KeyGesture(Key.F10, ModifierKeys.None, "F10"));
            CmdAffirmance = new RoutedUICommand("cmdAffirmance", "cmdAffirmance",
                typeof(MyAppCommands), inputAffirmance);

            InputGestureCollection inputContract = new InputGestureCollection();
            inputContract.Add(new KeyGesture(Key.F12, ModifierKeys.None, "F12"));
            CmdContract = new RoutedUICommand("cmdContract", "cmdContract",
                typeof(MyAppCommands), inputContract);

            InputGestureCollection inputReceipt = new InputGestureCollection();
            inputReceipt.Add(new KeyGesture(Key.F8, ModifierKeys.None, "F8"));
            CmdReceipt = new RoutedUICommand("cmdReceipt", "cmdReceipt",
                typeof(MyAppCommands), inputReceipt);

            InputGestureCollection inputInvoice = new InputGestureCollection();
            inputInvoice.Add(new KeyGesture(Key.F9, ModifierKeys.None, "F9"));
            CmdInvoice = new RoutedUICommand("cmdInvoice", "cmdInvoice",
                typeof(MyAppCommands), inputInvoice);

            InputGestureCollection inputPrint = new InputGestureCollection();
            inputPrint.Add(new KeyGesture(Key.P, ModifierKeys.Control, "Ctrl + P"));
            CmdPrint = new RoutedUICommand("cmdPrint", "cmdPrint",
                typeof(MyAppCommands), inputPrint);
		}

        private static RoutedUICommand CmdApartmentNew;
        public static RoutedUICommand cmdApartmentNew
        {
            get { return CmdApartmentNew; }
        }

        private static RoutedUICommand CmdDeposit;
        public static RoutedUICommand cmdDeposit
        {
            get { return CmdDeposit; }
        }

        private static RoutedUICommand CmdAffirmance;
        public static RoutedUICommand cmdAffirmance
        {
            get { return CmdAffirmance; }
        }

        private static RoutedUICommand CmdContract;
        public static RoutedUICommand cmdContract
        {
            get { return CmdContract; }
        }

        private static RoutedUICommand CmdReceipt;
        public static RoutedUICommand cmdReceipt
        {
            get { return CmdReceipt; }
        }

        private static RoutedUICommand CmdInvoice;
        public static RoutedUICommand cmdInvoice
        {
            get { return CmdInvoice; }
        }

        private static RoutedUICommand CmdPrint;
        public static RoutedUICommand cmdPrint
        {
            get { return CmdPrint; }
        }

		public static RoutedUICommand cmdApartmentCode = new RoutedUICommand();
        public static RoutedUICommand cmdAffirmanceRule = new RoutedUICommand();
        public static RoutedUICommand cmdManager = new RoutedUICommand();
        public static RoutedUICommand cmdBackup = new RoutedUICommand();
        public static RoutedUICommand cmdRestory = new RoutedUICommand();
        public static RoutedUICommand cmdGeneralReport = new RoutedUICommand();
        public static RoutedUICommand cmdSaleReport = new RoutedUICommand();
	}
}